import request from '../../utils/request'

//根据学生ID查询毕业设计的详细信息
export function selectProjectByStudentId(studentId) {
  return request({
    url: `/gdm/project/selectProjectByStudentId/${studentId}`,
    method: 'get',
    params: {}
  })
}

//根据教师ID查询指导学生信息
export function selectStudentByTeacherId(teacherId) {
  return request({
    url: `/gdm/teacher/selectStudentByTeacherId/${teacherId}`,
    method: 'get',
    params: {}
  })
}

//根据教师ID查询指导学生信息
export function selectProjectByGuide(guideId) {
  return request({
    url: `/gdm/project/selectProjectByGuide/${guideId}`,
    method: 'get',
    params: {}
  })
}

//教师提交批注论文
export function updateProjectByTeacher(guideId, rAddress) {
  return request({
    url: `/gdm/project/updateProjectByTeacher`,
    method: 'post',
    params: {
      guideId,
      rAddress
    }
  })
}
